
package com.hy.enterprise.framework.jpa.core.service ;

import java.io.Serializable;
import java.util.List;


import com.hy.enterprise.framework.jpa.core.dao.IDao;
import com.hy.enterprise.framework.jpa.core.entity.Persistable;
import com.hy.enterprise.framework.service.ILibraService ;

/**
 * <ul>
 * <li>设计作者：刘川</li>
 * <li>设计日期：2009-8-5</li>
 * <li>设计时间：下午03:11:06</li>
 * <li>设计目的：表现业务服务的接口</li>
 * </ul>
 * <ul>
 * <b>修订历史</b>
 * <li>1、</li>
 * </ul>
 */
//public interface IBusinessService < BusinessBean extends IServiceBusinessBean >      extends ILibraService
//public interface IBusinessService < BusinessBean extends IServiceBusinessBean >    //  extends ILibraService
//public interface IBusinessService < ServiceDao extends IDao,PersistentEntity extends Persistable >    //  extends ILibraService
public interface AbstractService<X,Y>// < ServiceDao extends IDao >    //  extends ILibraService
{
	// public List < BusinessBean > loadBusinessBean ( ) ;
	//public boolean submitPersistentEntities (List<MyBaseModel> list );
	public void persistEntity(Serializable entity);

//	boolean submitPersistentEntities(List list);
	public <Z> Z findById(X id);
	public <Z> Z findByIdentifier(Y identifier);

//	List<MyBaseModel> getPageOfPersistentEntities(ModelData[] modelDatas);
//	GridPagingLoadResultModel getPageOfPersistentEntities(ModelData[] modelDatas);
	public  <Z> List<Z> getAllPersistentEntities();
//	MyBaseModel findByIdentifier(List baseModels);

	//boolean submitPersistentEntities(List<MyBaseModel> list);
	
	//boolean submitPersistentEntities(MyBaseModel[] persistentEntities);

}
